'use strict';
exports.main = async (event, context) => {
	//event为客户端上传的参数
	console.log('event : ', event)
	let uIdList = [{
		name: "张博",
		phone: '13598318729',
		password : '202506',
		zhiwei: '办公室',
		gongsi: '郑州市监管局'
	}, {
		name: "刘吉利",
		phone: '18838073229',
		password : '202506',
		zhiwei: '办公室',
		gongsi: '郑州市监管局'
	}, {
		name: "李翱翔",
		phone: '17797773593',
		password : '202506',
		zhiwei: '办公室',
		gongsi: '郑州市监管局'
	},{
		name: "李岩",
		phone: '13323717033',
		password : '202506',
		zhiwei: '办公室',
		gongsi: '郑州市监管局'
	},
	{
		name: "乔",
		phone: '13140195548',
		password : '202506',
		zhiwei: '办公室',
		gongsi: '郑州市监管局'
	}, ]


	// 查找匹配的用户对象 
	const result = uIdList.find(user =>
		user.phone === event.phone &&
		user.password === event.password
	) || false; // 未找到时返回 false

	return result
};